package com.stylefeng.guns.rest.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.rest.common.persistence.model.SendPhoneCode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
public interface SendPhoneCodeMapper extends BaseMapper<SendPhoneCode> {
    int deleteByPrimaryKey(String account);

    int insertSelective(SendPhoneCode record);

    SendPhoneCode selectByPrimaryKey(String account);

    int updateByPrimaryKeySelective(SendPhoneCode record);

    int updateByPrimaryKey(SendPhoneCode record);

    Long selectLastSendTime(String account);

    int addOrUpdate(SendPhoneCode record);

    SendPhoneCode selectCodeAndTime(String account);
}